package com.suke.czx.modules.wxadmin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.wxadmin.dao.DkBookExchangeDao;
import com.suke.czx.modules.wxadmin.entity.DkBookExchangeEntity;
import com.suke.czx.modules.wxadmin.service.DkBookExchangeService;



@Service("dkBookExchangeService")
public class DkBookExchangeServiceImpl implements DkBookExchangeService {
	@Autowired
	private DkBookExchangeDao dkBookExchangeDao;
	
	@Override
	public DkBookExchangeEntity queryObject(Integer id){
		return dkBookExchangeDao.queryObject(id);
	}
	
	@Override
	public List<DkBookExchangeEntity> queryList(Map<String, Object> map){
		return dkBookExchangeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dkBookExchangeDao.queryTotal(map);
	}
	
	@Override
	public void save(DkBookExchangeEntity dkBookExchange){
		dkBookExchangeDao.save(dkBookExchange);
	}
	
	@Override
	public void update(DkBookExchangeEntity dkBookExchange){
		dkBookExchangeDao.update(dkBookExchange);
	}
	
	@Override
	public void delete(Integer id){
		dkBookExchangeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		dkBookExchangeDao.deleteBatch(ids);
	}

	@Override
	public List<DkBookExchangeEntity> queryListByOpenid(String openid) {
		return dkBookExchangeDao.queryListByOpenid(openid);
	}
	
}
